Configuring HTTP Locations
The HTTP Locations table lets you configure up to
The HTTP Locations table is a "child" of the HTTP Proxy Servers table (see Configuring HTTP Proxy Servers), reflecting the nesting of Location contexts within Server contexts in the NGINX configuration file. This may be used to specify unique handling of URLs by file type (using a regex pattern) or by pathname (using a Prefix or Exact Match pattern).
The following procedure describes how to configure HTTP Locations through the Web interface. You can also configure it through ini file [HTTPLocation] or CLI (configure network > http-proxy > location).
➢ | To configure an HTTP Location: |
1. | Enable the HTTP Proxy application, as described in Enabling the HTTP Proxy Application. |
2. | Open the HTTP Proxy Servers table (Setup menu > IP Network tab > HTTP Proxy folder > HTTP Proxy Servers). |
3. | In the table, select the required HTTP Proxy Server, and then click the HTTP Locations link located below the table; the HTTP Locations table appears. |
4. | Click New; the following dialog box appears: |
5. | Configure an HTTP Location according to the parameters described in the table below. |
6. | Click Apply, and then save your settings to flash memory. |
HTTP Locations Table Parameter Descriptions
Parameter |
Description |
|||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
General | ||||||||||||||||||||||||||||
'Index' [Index] |
Defines an index number for the new table row. Note:
|
|||||||||||||||||||||||||||
'URL Pattern' url-pattern [URLPattern] |
Defines the URL pattern. Received GET or POST requests are matched against the locations in the HTTP Locations table by matching the URL in the received request to the URL configured by this parameter. If there is a match, the prefix is stripped from the request and then forwarded in the outgoing HTTP request. Note:
|
|||||||||||||||||||||||||||
'URL Pattern Type' url-pattern-type [URLPatternType] |
Defines the type of URL pattern used for configuring the 'URL Pattern' parameter (see above).
For example, assume that you have configured the following URL patterns for four HTTP Locations:
Therefore, the request URL "/files/phone/aaa" matches Location 2 and the request URL "/files/phone/logo.jpg" matches Location 4. The request URL "/files/firmware/logo.jpg" matches Location 3 (and not Location 4). Note: The NGINX directive for this parameter is "location modifier pattern". For more information on NGINX modifiers, see ngx_http_core_module.html. |
|||||||||||||||||||||||||||
'Upstream Scheme' upstream-scheme [UpstreamScheme] |
Defines the protocol for sending requests to the Upstream Group.
Note: The NGINX directive for this parameter is "proxy_pass scheme://upstream". |
|||||||||||||||||||||||||||
'Upstream Group' upstream-group [UpstreamGroup] |
Assigns a group of servers (Upstream Group) to handle the HTTP requests. To configure Upstream Groups, see Configuring Upstream Groups. Note: The NGINX directive for this parameter is "proxy_pass scheme://upstream". |
|||||||||||||||||||||||||||
'Upstream Path' upstream-path [UpstreamPath] |
Defines a path to prepend to the URL before sending the request to the Upstream Group. Note: The NGINX directive for this parameter is "proxy_pass scheme://upstream/path". |
|||||||||||||||||||||||||||
'Outbound Interface' outbound-intfc [OutboundInterface] |
Assigns a local, IP network interface for sending requests to the Upstream Group. To configure IP network interfaces, see Configuring IP Network Interfaces. By default, no value is defined. Note:
|
|||||||||||||||||||||||||||
'Additional Directive Set' directive-set [AdditionalDirectiveSet] |
Assigns an NGINX directive set for the HTTP location. To configure NGINX directives, see Configuring HTTP Directive Sets. |
|||||||||||||||||||||||||||
'Cache' cache [Cache] |
Enables the caching of files in this location.
Note:
|
|||||||||||||||||||||||||||
SSL |
||||||||||||||||||||||||||||
'TLS Context' tls-context [TLSContext] |
Assigns a TLS Context for the TLS connection with the HTTP location. To configure TLS Contexts, see Configuring TLS Certificates. Note:
|
|||||||||||||||||||||||||||
'Verify Certificate' verify-cert [VerifyCertificate] |
Enables TLS certificate verification when the connection with the location is based on HTTPS. It verifies the certificate of the incoming connection request from the Upstream Group.
Note:
|